{if $elo > $smarty.const.DIAMONDELO  }
{assign var="type" value="diamond"}
{assign var="ranking" value="Diamond"}
{elseif $elo >= $smarty.const.GOLDELO && $elo < $smarty.const.DIAMONDELO  }
{assign var="type" value="gold"}
{assign var="ranking" value="Gold"}
{elseif $elo >= $smarty.const.SILVERELO && $elo < $smarty.const.GOLDELO}
{assign var="type" value="silver"}
{assign var="ranking" value="Silver"}
{else}
{assign var="type" value="bronze"}
{assign var="ranking" value="Bronze"}
{/if}
<img src="img/medals/medal-{$type}.png" alt="Ranking:{$ranking}" class="t" title="Ranking: {$ranking}">
